package cn.ydt.ydt.community.pojo.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 添加打卡范围的DTO
 * @author Administrator
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class EnclosureSingInLocationDTO  implements Serializable {
    private static final long serialVersionUID = 1L;
    private static final String VALIDATE_MESSAGE_PREFIX = "添加签到区域失败，";
    /**
     * 社区id
     */
    @ApiModelProperty(value = "社区id" ,name = "communityId" ,example = "1" , required = true )
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "社区id不能为空" )
    private Integer communityId;
    /**
     * 中心点纬度值
     */
    @ApiModelProperty(value = "中心点纬度值", name = "centerLatitude" , example = "39.455" ,required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "纬度不能为空" )
    private String centerLatitude;

    /**
     *中心点的经度值
     */
    @ApiModelProperty(value = "中心点的经度值" , name = "centerLongitude" , example = "116.35425",required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "经度不能为空" )
    private String centerLongitude;

    /**
     * 范围半径
     */
    @ApiModelProperty(value = "范围半径(单位：m)" , name = "radius" , example = "1000",required = true)
    @NotNull(message = VALIDATE_MESSAGE_PREFIX + "半径不能为空" )
    private Double radius;
}
